package org.dromara.dao.business.mapper;

import org.dromara.dao.business.domain.SmartAgent;
import org.dromara.dao.business.domain.SmartAgentQuery;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;


import java.util.List;

/**
 * 智能体Mapper接口
 *
 * @date 2025-01-13 10:56:16
 */
public interface SmartAgentMapper extends BaseMapper<SmartAgent> {

    /**
     *  获取分页数据
     * @param query
     * @param page
     * @return
    */
    List<SmartAgent> paginationSelectList(@Param("query")SmartAgentQuery query, @Param("page")PageQuery page);
    /**
     *  获取分页数据总条数
     * @param query
     * @return
    */
    long paginationSelectCount(@Param("query")SmartAgentQuery query);



    List<SmartAgent> queryHotAgent(Long userId);

    List<SmartAgent> queryUserAgentList(Long userId);


    List<SmartAgent> searchAgent(@Param("categoryId")Long categoryId, @Param("search")String search, @Param("lang")String lang, @Param("userId")Long userId);
}
